package hivi.vn.hivigold.objects;

import java.io.Serializable;

import org.json.JSONException;
import org.json.JSONObject;

public class HistoryDetail implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String FK_VTID;
	private String VTNAME;
	private String DVT;
	private String MA_KHO;
	private Double SO_LUONG;
	private Double TLG_AU;
	private Double TLG_DA;
	private Double HLG_AU;
	private Double TONG_TLG;
	private Double TIEN_CONG;
	private Double TIEN_DA;
	private Double GIA_AU;
	private Double GIA;
	private Double TIEN;
	
	public HistoryDetail(JSONObject json) {
		// TODO Auto-generated constructor stub
		try {
			FK_VTID = json.getString("FK_VTID");
			VTNAME = json.getString("VTNAME");
			DVT = json.getString("FK_DVTID");
			MA_KHO = json.getString("FK_KHOID");
			SO_LUONG = json.getDouble("SO_LUONG");
			TLG_AU = json.getDouble("TLG_AU");
			TLG_DA = json.getDouble("TLG_DA");
			HLG_AU = json.getDouble("HLG_AU");
			TONG_TLG = json.getDouble("TONG_TLG");
			TIEN_CONG = json.getDouble("TIEN_CONG");
			TIEN_DA = json.getDouble("TIEN_DA");
			GIA_AU = json.getDouble("GIA_AU");
			GIA = json.getDouble("GIA");
			TIEN = json.getDouble("TIEN");
		} catch (JSONException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

	public String getFK_VTID() {
		return FK_VTID;
	}

	public void setFK_VTID(String fK_VTID) {
		FK_VTID = fK_VTID;
	}

	public String getVTNAME() {
		return VTNAME;
	}

	public void setVTNAME(String vTNAME) {
		VTNAME = vTNAME;
	}

	public Double getSO_LUONG() {
		return SO_LUONG;
	}

	public void setSO_LUONG(Double sO_LUONG) {
		SO_LUONG = sO_LUONG;
	}

	public Double getTLG_AU() {
		return TLG_AU;
	}

	public void setTLG_AU(Double tLG_AU) {
		TLG_AU = tLG_AU;
	}

	public Double getTLG_DA() {
		return TLG_DA;
	}

	public void setTLG_DA(Double tLG_DA) {
		TLG_DA = tLG_DA;
	}

	public Double getHLG_AU() {
		return HLG_AU;
	}

	public void setHLG_AU(Double hLG_AU) {
		HLG_AU = hLG_AU;
	}

	public Double getTONG_TLG() {
		return TONG_TLG;
	}

	public void setTONG_TLG(Double tONG_TLG) {
		TONG_TLG = tONG_TLG;
	}

	public Double getTIEN_CONG() {
		return TIEN_CONG;
	}

	public void setTIEN_CONG(Double tIEN_CONG) {
		TIEN_CONG = tIEN_CONG;
	}

	public Double getTIEN_DA() {
		return TIEN_DA;
	}

	public void setTIEN_DA(Double tIEN_DA) {
		TIEN_DA = tIEN_DA;
	}

	public Double getGIA_AU() {
		return GIA_AU;
	}

	public void setGIA_AU(Double gIA_AU) {
		GIA_AU = gIA_AU;
	}

	public Double getGIA() {
		return GIA;
	}

	public void setGIA(Double gIA) {
		GIA = gIA;
	}

	public Double getTIEN() {
		return TIEN;
	}

	public void setTIEN(Double tIEN) {
		TIEN = tIEN;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	public String getDVT() {
		return DVT;
	}

	public void setDVT(String dVT) {
		DVT = dVT;
	}

	public String getMA_KHO() {
		return MA_KHO;
	}

	public void setMA_KHO(String mA_KHO) {
		MA_KHO = mA_KHO;
	}
}
